/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.p2psimulator.entity.protocol.messages.chord.storm;

import org.p2psimulator.entity.Id;
import org.p2psimulator.entity.Message;
import org.p2psimulator.entity.behavior.BehaviorTypes;
import org.p2psimulator.entity.protocol.messages.MessageTypes;
import org.p2psimulator.entity.reputation.Reputation;

/**
 *
 * @author Amorim
 */
public class CreateWitnessesRing extends Message {


    private Id refferedId;
    private Reputation opinion;

    public CreateWitnessesRing(Id origin, Id destination, int transactionId, BehaviorTypes originBehavior) {
        super(origin, destination, transactionId, originBehavior);
    }


    @Override
    public MessageTypes getMessageType() {
        return MessageTypes.STORM_CREATEWITNESSESRING;
    }

    @Override
    public String getName() {
        return MessageTypes.STORM_CREATEWITNESSESRING.getName();
    }

    public Reputation getOpinion() {
        return opinion;
    }

    public void setOpinion(Reputation opinion) {
        this.opinion = opinion;
    }

    public Id getRefferedId() {
        return refferedId;
    }

    public void setRefferedId(Id refferedId) {
        this.refferedId = refferedId;
    }
}
